import request from "@/utils/request";

// 新增
export function save(data) {
  return request({
    url: "/manage/special/save",
    method: "post",
    data
  })
}
// 查询
export function getAll(params) {
  return request({
    url: "/manage/special/getAll",
    method: "get",
    params
  })
}
// 删除
export function deleteList(ids) {
  return request({
    url: `/manage/special/delete/${ids}`,
    method: "post"
  })
}
// 详情
export function getById(id) {
  return request({
    url: `/manage/special/getById/${id}`,
    method: "get"
  })
}
// 修改
export function update(data) {
  return request({
    url: "/manage/special/update",
    method: "post",
    data
  })
}
// 自动生成 
export function add(id) {
  return request({
    url: `/manage/special/add/${id}`,
    method: "get"
  })
}
